package online.sanen.mhdt.entity.equip;

import online.sanen.mhdt.RandomeTool;
import online.sanen.mhdt.entity.attr.AD;

/**
 * 武器
 */
public abstract class Weapon extends Equip{
    protected AD ad;
    /**
     * 装备属性取值范围
     */
    protected int minAd;
    protected int maxAd;
    protected void initBaseAttr() {
        ad = new AD(RandomeTool.equipBaseAttr(minAd, maxAd));
    }

    public AD getAd() {
        return ad;
    }

    public void setAd(AD ad) {
        this.ad = ad;
    }

    public int getMinAd() {
        return minAd;
    }

    public void setMinAd(int minAd) {
        this.minAd = minAd;
    }

    public int getMaxAd() {
        return maxAd;
    }

    public void setMaxAd(int maxAd) {
        this.maxAd = maxAd;
    }
}
